import os
from datetime import timedelta

from flask_uploads import IMAGES

HOST = '0.0.0.0'
CRAWL_NUM = 1
PORT = 5000
DEBUG = True

MYSQL_PASSWORD = 'tanditech'
SECRET_KEY = 'TwYV2R2IEU5&Ne6JSr@Jx9HjOuy7QVG%'
AUTH_SALT = 'Jx9HjOuy7QVG'
JWT_AUTH_URL_RULE = '/login'
JWT_EXPIRATION_DELTA = timedelta(milliseconds=1440 * 31 * 60)
BCRYPT_LEVEL = 14

TYPE_PRICE = 0
TYPE_ORIGIN_PRICE = 1

QINIU_ACCESSKEY = "DRvogJIL9LJ6YtNeDeo6UK4nducQvrebE2Zbsrde"
QINIU_SECRET_KEY = "K_s_5Ho5qRsr6aIURSTEQHR06sJF_p4XgmCmVi6l"

UPLOADED_IMAGES_DEST = "img/"

CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0'
